

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@Configuration
@EnableAspectJAutoProxy
public class AppConfig {

    @Bean
    public BusinessService businessService() {
        return new BusinessService();
    }

    @Bean
    public com.example.aop.LoggingAspect loggingAspect() {
        return new com.example.aop.LoggingAspect();
    }
}